class Game_role():
    def __init__(self,name,ad,hp):
        self.name=name
        self.ad=ad
        self.hp=hp

def attack():
    a=Game_role('盖伦',10,100)
    b=Game_role('剑豪',20,80)
    return f'{a.name}攻击了{b.name},掉了{a.ad*0.5}血'


print(attack())